package com.example.springblog.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Description:
 * Date: 2024-10-04
 * Time: 21:05
 */
public class DateUtils {
    public static String dateFormat(Date date){
        //2024-04-24 21:18
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return format.format(date);
    }

}
